package com.bawei.detail.api

import com.bawei.common.entity.CommendEntity
import com.bawei.common.entity.MovieEntity
import com.bawei.detail.entity.AuthorEntity
import com.bawei.http.ApiBaseResponse
import retrofit2.http.GET
import retrofit2.http.Query

interface DetailApiServer {

    @GET("/videoauthor/getAuthorById")
    suspend fun getAuthorById(@Query("userid") userId: String): ApiBaseResponse<AuthorEntity>

    //获取推荐的视频
    @GET("/videomulti/getRecommendMutilVideo")
    suspend fun getRecommendMultiVideo(@Query("page") page: Int, @Query("pagesize") pageSize: Int): ApiBaseResponse<List<MovieEntity>>

    //获取二级分类视频
    @GET("/videomulti/getMutilVideoByTypeId")
    suspend fun getMultiVideoByTypeId(@Query("typeid") typeId: Int, @Query("page") page: Int, @Query("pagesize") pageSize: Int): ApiBaseResponse<List<MovieEntity>>

    //获取评论
    @GET("/comment/getCommentByUserId")
    suspend fun getVideoCommends(@Query("datatype") dataType: Int, @Query("itemid") itemId:String): ApiBaseResponse<List<CommendEntity>>

}